package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: liangyuanzhang
 * Date: 2025-1-14
 * Time: 19:49
 */
public class Bird extends Animal{

    public Bird(String name, int age) {
        super(name, age);
    }

    public void fly(){
        System.out.println(this.name + " 正在飞......");
    }

    @Override
    public void eat(){
        System.out.println(this.name + " 正在吃鸟粮......");
    }
}
